/* dialog.css - 对话框样式 */

/* 工具选择对话框 */
.tool-selection-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    width: 500px;
    max-width: 90vw;
    z-index: 1100;
}

.dialog-header {
    margin-bottom: 16px;
}

.dialog-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.tool-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
}

.tool-search:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
}

.tool-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 16px 0;
    border: 1px solid #dadce0;
    border-radius: 4px;
}

.tool-selection-item {
    padding: 12px 16px;
    border-bottom: 1px solid #dadce0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tool-selection-item:last-child {
    border-bottom: none;
}

.tool-selection-item:hover {
    background-color: #f8f9fa;
}

.tool-selection-item.selected {
    background-color: #e8f0fe;
}

.tool-selection-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.tool-selection-desc {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
}

/* 对话框遮罩层 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-overlay.show {
    opacity: 1;
}

/* 确认对话框 */
.confirm-dialog {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    width: 400px;
    max-width: 90vw;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.confirm-dialog.show {
    transform: scale(1);
    opacity: 1;
}

.dialog-content {
    margin-bottom: 24px;
}

.dialog-message {
    font-size: 16px;
    line-height: 1.5;
    color: #202124;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 更新 save-agent-btn 和 dialog 按钮共享的基础样式 */
.save-agent-btn,
.dialog-footer button {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-agent-btn,
.dialog-footer .confirm-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
}

.save-agent-btn:hover,
.dialog-footer .confirm-btn:hover {
    background-color: #1557b0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* 对话框按钮区域 */
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* 对话框按钮基础样式 */
.dialog-footer button,
.confirm-btn,
.cancel-btn {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 确认按钮样式 */
.confirm-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
}

.confirm-btn:hover {
    background-color: #1557b0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* 取消按钮样式 */
.cancel-btn {
    background-color: #fff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.cancel-btn:hover {
    background-color: #f8f9fa;
}
